STATIC int MangleName(char ** namePtr,struct MangleInfo * mi);
STATIC VOID CloseUnlinkUnlockCleanup(VOID);
STATIC VOID OpenDirCleanup(VOID);
STATIC int TranslateRelativePath(char **namePtr, char *replace, int maxReplaceLen);
STATIC VOID MapDescriptorSets(const fd_set *input_fds, int num_input_fds, fd_set *socket_fds, int *max_socket_fd_ptr, fd_set *file_fds, int *max_file_fd_ptr);
STATIC VOID RemapDescriptorSets(const fd_set *socket_fds, int max_socket_fd, const fd_set *file_fds, int max_file_fd, fd_set *output_fds, int num_output_fds);